﻿namespace ctolua.Models.Expand
{
    public static class EGame
    {
        /// <summary>
        /// 设置分辨率
        /// </summary>
        /// <param name="role ">  玩家   </param>
        /// <param name="x_resolution ">  横向分辨率   </param>
        /// <param name="y_resolution ">  纵向分辨率   </param>
        public static void set_screen_resolution(this Role role, int? x_resolution, int? y_resolution) => game_api.set_screen_resolution(role, x_resolution, y_resolution);


        /// <summary>
        /// 设置画质
        /// </summary>
        /// <param name="role ">  玩家   </param>
        /// <param name="quality ">  画质   </param>
        public static void set_image_quality(this Role role, string quality) => game_api.set_image_quality(role, quality);

        /// <summary>
        /// 设置窗口
        /// </summary>
        /// <param name="role ">  玩家   </param>
        /// <param name="window_type ">  样式   </param>
        public static void set_window_type(this Role role, string window_type) => game_api.set_window_type(role, window_type);







    }
}
